package SE2;

import static org.junit.Assert.*;

import java.util.GregorianCalendar;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

public class ProposedProductionPlanTest {
	ProposedProductionPlan proposedProductionPlan;
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp(){
		proposedProductionPlan = new ProposedProductionPlan();
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testSetId() {
		setUp();
		proposedProductionPlan.setId(1);
		assertEquals(1, proposedProductionPlan.getId());
		
		//fail("Not yet implemented");
	}

	@Test
	public void testSetProduct() {
		setUp();
		proposedProductionPlan.setProduct("Prod1");
		assertEquals("Prod1", proposedProductionPlan.getProduct());
		//fail("Not yet implemented");
	}

	@Test
	public void testSetAmount() {
		setUp();
		proposedProductionPlan.setAmount(1);
		assertEquals(1, proposedProductionPlan.getAmount());
		
		//fail("Not yet implemented");
	}

	@Test
	public void testSetDeliveryDate() {
		setUp();
		proposedProductionPlan.setDeliveryDate(new GregorianCalendar(2010,05,01));
		assertEquals(new GregorianCalendar(2010, 05, 01), proposedProductionPlan.getDeliveryDate());
		//fail("Not yet implemented");
	}

	@Test
	public void testGetId() {
		setUp();
		proposedProductionPlan.setId(1);
		assertEquals(1, proposedProductionPlan.getId());
		
		//fail("Not yet implemented");
	}

	@Test
	public void testGetProduct() {
		setUp();
		proposedProductionPlan.setProduct("Prod1");
		assertEquals("Prod1", proposedProductionPlan.getProduct());
		
		//fail("Not yet implemented");
	}

	@Test
	public void testGetAmount() {
		setUp();
		proposedProductionPlan.setAmount(1);
		assertEquals(1, proposedProductionPlan.getAmount());
		
		//fail("Not yet implemented");
	}

	@Test
	public void testGetDeliveryDate() {
		setUp();
		proposedProductionPlan.setDeliveryDate(new GregorianCalendar(2010,05,01));
		assertEquals(new GregorianCalendar(2010, 05, 01), proposedProductionPlan.getDeliveryDate());

		//fail("Not yet implemented");
	}

}
